// @ts-check
import withNuxt from "./.nuxt/eslint.config.mjs";

export default withNuxt(
  // Your custom configs passed to withNuxt
  {
    // Specify files/directories to ignore
    ignores: [
      "**/app/generated/prisma/**", // Ignore generated Prisma client directory
      // You can add other ignore patterns here, e.g., 'dist/**', '.output/**'
    ],
    rules: {
      // Stylistic rules (ensure @stylistic/eslint-plugin is used by withNuxt)
      "@stylistic/indent": ["error", 2],
      "@stylistic/quotes": ["error", "double"],
      "@stylistic/semi": ["error", "always"],
      "@stylistic/comma-dangle": ["error", "always-multiline"],

      // Disable the rule against using 'any'
      "@typescript-eslint/no-explicit-any": "off",

      // Add any other custom ESLint rules here
    },
  }
);
